from typing import *


class Solution:

    def distinctAverages(self, nums: List[int]) -> int:
        nums.sort()
        n = len(nums) // 2
        s = set()
        for l, r in zip(nums[:n], nums[:n - 1:-1]):
            s.add(l + r)
        return len(s)


so = Solution()
print(so.distinctAverages([4, 1, 4, 0, 3, 5]))
